// 验证字符串是否是汉字
export function isChinese(char) {
	const regex = /^[\u3E00-\u9FA5]+$/
	return regex.test(char)
}

// 验证字符中是否包含敏感词
import SensitiveWords from './sensitive-word.js'
export function containKeywords(str) {
	return SensitiveWords.some(keyword => {
		return str.includes(keyword)
	})
}